delete from Prato
delete from Prato_insumo

ALTER TABLE Prato
add Tamanho varchar(50)

DROP TABLE Vendas

USE [SIAR]
GO

/****** Object:  Table [dbo].[Vendas]    Script Date: 01/07/2010 00:02:13 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Vendas](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ID_Cliente] [int] NULL,
	[Num_Mesa] [int] NULL,
	[HoraA] [datetime] NULL,
	[HoraF] [datetime] NULL,
	[Estado] [varchar](50) NULL,
	[Entregador] [int] NULL,
 CONSTRAINT [PK_Vendas] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Vendas]  WITH CHECK ADD  CONSTRAINT [FK_Vendas_Pessoa] FOREIGN KEY([ID_Cliente])
REFERENCES [dbo].[Pessoa] ([ID])
GO

ALTER TABLE [dbo].[Vendas] CHECK CONSTRAINT [FK_Vendas_Pessoa]
GO

ALTER TABLE [dbo].[Vendas]  WITH CHECK ADD  CONSTRAINT [FK_Vendas_Pessoa1] FOREIGN KEY([Entregador])
REFERENCES [dbo].[Pessoa] ([ID])
GO

ALTER TABLE [dbo].[Vendas] CHECK CONSTRAINT [FK_Vendas_Pessoa1]
GO